package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the aclduty table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="aclduty"
 */

public abstract class BaseAclduty  implements Serializable {

	public static String REF = "Aclduty";
	public static String PROP_DUTYNAME = "Dutyname";
	public static String PROP_REMARK = "Remark";
	public static String PROP_DUTYLEVEL = "Dutylevel";
	public static String PROP_ID = "Id";
	public static String PROP_IDX = "Idx";


	// constructors
	public BaseAclduty () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAclduty (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAclduty (
		java.lang.String id,
		java.lang.String dutyname) {

		this.setId(id);
		this.setDutyname(dutyname);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String dutyname;
	private java.lang.String dutylevel;
	private java.lang.Integer idx;
	private java.lang.String remark;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: DUTYNAME
	 */
	public java.lang.String getDutyname () {
		return dutyname;
	}

	/**
	 * Set the value related to the column: DUTYNAME
	 * @param dutyname the DUTYNAME value
	 */
	public void setDutyname (java.lang.String dutyname) {
		this.dutyname = dutyname;
	}



	/**
	 * Return the value associated with the column: DUTYLEVEL
	 */
	public java.lang.String getDutylevel () {
		return dutylevel;
	}

	/**
	 * Set the value related to the column: DUTYLEVEL
	 * @param dutylevel the DUTYLEVEL value
	 */
	public void setDutylevel (java.lang.String dutylevel) {
		this.dutylevel = dutylevel;
	}



	/**
	 * Return the value associated with the column: IDX
	 */
	public java.lang.Integer getIdx () {
		return idx;
	}

	/**
	 * Set the value related to the column: IDX
	 * @param idx the IDX value
	 */
	public void setIdx (java.lang.Integer idx) {
		this.idx = idx;
	}



	/**
	 * Return the value associated with the column: REMARK
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: REMARK
	 * @param remark the REMARK value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.Aclduty)) return false;
		else {
			com.lovejes.app.domain.Aclduty aclduty = (com.lovejes.app.domain.Aclduty) obj;
			if (null == this.getId() || null == aclduty.getId()) return false;
			else return (this.getId().equals(aclduty.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}